package com.prs.crm.service.sys.impl;

import java.io.Serializable;
import java.util.List;

import com.prs.crm.dao.sys.CodeCommonDao;
import com.prs.crm.domain.sys.CodeCommon;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.sys.CodeCommonService;


public class CodeCommonServiceImpl extends BaseServiceImpl<CodeCommon, CodeCommonDao> implements CodeCommonService {

	@Override
	public List<CodeCommon> getCodeCommonByCodeType(String type) {
		// TODO Auto-generated method stub
		return this.getDao().getCodeCommonByCodeType(type);
	}

	@Override
	public int getCodeCommonCodeName(String name) {
		// TODO Auto-generated method stub
		return this.getDao().getCodeCommonCodeName(name);
	}

	@Override
	public CodeCommon getVobject(Serializable id) {
		// TODO Auto-generated method stub
		return this.getDao().getVobject(id);
	}

	@Override
	public void saveOrUpdate(CodeCommon codeCommon) {
		// TODO Auto-generated method stub
		this.getDao().saveOrUpdate(codeCommon);
	}

	@Override
	public void delete(CodeCommon codeCommon) {
		this.getDao().deleteCode(codeCommon);
	}

	
}
